<?php
include '../connect/common_start.php';
if(isset($_REQUEST['day']))
{
	$day=$_REQUEST['day'];
	$curDay= date("Y-m-d");
	$NewDate = date('Y-m-d', strtotime($curDay . "$day days"));
	$result=mysql_query("SELECT * FROM post m WHERE (m.type='2' AND m.date='$NewDate' AND m.status='1')");
	$rows = array();
	while($r = mysql_fetch_assoc($result)) {
		$rows[] = $r;
	}
	echo json_encode($rows);
}
include '../connect/common_end.php';
?>
